// 登录接口
import request from '@/utils/request'
// 注册接口
export const login = data => request.post('/user/login', data)

// 收藏的接口
export const Favorites = () => request.get('/user/favorites')

// 获取发布房屋列表
export const getHouses = () => {
  return request.get('/user/houses')
}

// 获取城市列表
export const getCity = data => request.get('/area/city', {
  params: {
    level: 1 // 表示获取所有城市列表
  }
})
// 获取热门城市列表
export const getHotcity = () => request.get('/area/hot')

// 获取关键词小区查询
export const getXiaoqu = () => request.get('/area/community', {
  params: {
    name: '北京',
    id: 'AREA|88cff55c-aaa4-e2e0'
  }
})
